<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:shiro="http://shiro.apache.org/tags"
                template="/WEB-INF/layout/template.xhtml">

    <ui:define name="title">Jaws大白鲨项目简介</ui:define>

    <ui:define name="navigation">
        <p:breadCrumb>
            <p:menuitem value="首页" url="/index.xhtml"/>
            <p:menuitem value="项目简介" url="#"/>
        </p:breadCrumb>
    </ui:define>

    <ui:define name="content">
        <h1>Jaws大白鲨项目简介</h1>
        <h2>This is a Java EE 7 demo.</h2>
        <p>开发与运行环境：JDK 8u74、GlassFish 4.1.1、NetBeans 8.1、
            MySQL-5.6.19</p>
        <p>使用或将使用的技术：JSF 2.2(Mojarra 2.2.12+PrimeFaces 5.3+OmniFaces 2.2)、
            EJB 3.2、JPA 2.1(Hibernate 5.0.1)、CDI 1.2(Weld 2.2.4+DeltaSpike 1.5.4)、
            Servlet 3.1、Batch 1.0、Bean Validation 1.1、JMS 2.0、WebSocket 1.0、
            JAX-WS 2.2、JAX-RS 2.0、HTML 5、Shiro 1.2.4、Kaptcha 0.0.9、POI 3.13、
            Infinispan 8.1.2.Final、logback-1.1.5……</p>
        <p>……</p>

        <h3 style="margin-top: 0">使用或将使用的技术</h3>
        <div class="ui-grid ui-grid-responsive">
            <div class="ui-grid-row">
                <div class="ui-grid-col-3">
                    <p:panel header="PrimeFaces" toggleable="true">
                        <a href="http://www.primefaces.org" target="_blank">
                            <img src="http://www.primefaces.org/images/logo.png" alt="DeltaSpike"/>
                        </a>
                    </p:panel>
                </div>
                <!--<div class="ui-grid-col-3">
                    <p:panel header="Hibernate" toggleable="true">
                        <a href="http://hibernate.org" target="_blank">
                            <img src="http://static.jboss.org/hibernate/images/hibernate_logo_whitebkg_200px.png" alt="Hibernate"/>
                        </a>
                    </p:panel>
                </div>-->
                <div class="ui-grid-col-3">
                    <p:panel header="GlassFish" toggleable="true">
                        <a href="https://glassfish.java.net" target="_blank">
                            <!-- https://blogs.oracle.com/theaquarium/resource/glassfish_4.png -->
                            <img src="https://glassfish.java.net/images/gflogoxs.png" alt="GlassFish"/>
                        </a>
                    </p:panel>
                </div>
                <div class="ui-grid-col-3">
                    <p:panel header="WildFly" toggleable="true">
                        <a href="https://wildfly.org" target="_blank">
                            <img src="http://static.jboss.org/wildfly/images/wildfly-logo.png" alt="WildFly"/>
                        </a>
                    </p:panel>
                </div>
            </div>
            <div class="ui-grid-row">
                <div class="ui-grid-col-3">
                    <p:panel header="CDI" toggleable="true">
                        <a href="http://www.cdi-spec.org" target="_blank">
                            <img src="http://www.cdi-spec.org/images/cdi_word_cloud_white.gif" alt="CDI" border="0" width="150"/>
                        </a>
                    </p:panel>
                </div>
                <div class="ui-grid-col-3">
                    <p:panel header="DeltaSpike" toggleable="true">
                        <a href="http://deltaspike.apache.org" target="_blank">
                            <img src="http://deltaspike.apache.org/resources/images/logos/logo.png" alt="DeltaSpike" border="0" width="150"/>
                        </a>
                    </p:panel>
                </div>
                <div class="ui-grid-col-3">
                    <p:panel header="Shiro" toggleable="true">
                        <a href="http://shiro.apache.org" target="_blank">
                            <img src="http://shiro.apache.org/assets/images/apache-shiro-logo.png" alt="Shiro" border="0" width="150"/>
                        </a>
                    </p:panel>
                </div>
                <div class="ui-grid-col-3">
                    <p:panel header="NetBeans" toggleable="true">
                        <a href="https://netbeans.org" target="_blank">
                            <!-- https://netbeans.org/images_www/v7/design/logo_netbeans_red.png -->
                            <img src="https://netbeans.org/images_www/v7/design/nb-logo2.gif" alt="NetBeans" border="0" width="150"/>
                        </a>
                    </p:panel>
                </div>
            </div>
        </div>

        <a href="system/userQuery.xhtml">userQuery.xhtml</a><br/>
        <a href="system/sysCodeQuery.xhtml">sysCodeQuery.xhtml</a><br/>
        <a href="system/logEventQuery.xhtml">logEventQuery.xhtml</a><br/>
        <p>Hi, <shiro:guest>Guest，你尚未<h:link outcome="/login.xhtml">登录</h:link>！</shiro:guest>
            <shiro:user><shiro:principal/></shiro:user>!
        </p>
        <p:panel>
            <h:panelGroup rendered="#{empty request.remoteUser}">
                Welcome! Well, it seems that you are not logged in!
                Please <h:link value="login" outcome="login" /> to see more awesomeness on this site!
            </h:panelGroup>

            <h:panelGroup rendered="#{not empty request.remoteUser}">
                Welcome! You're logged in as #{request.remoteUser}. Enjoy the site!

                <!--h:panelGroup rendered="#{request.isUserInRole('ADMIN')}">
                    You're an ADMIN user! Wow, we'll render some more cool buttons for you soon.
                </h:panelGroup>

                <h:panelGroup rendered="#{not request.isUserInRole('ADMIN')}">
                    You're not an ADMIN user. You probably will never become one.
                </h:panelGroup-->
            </h:panelGroup>
        </p:panel>
    </ui:define>
</ui:composition>
